package demo6;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;
@Component
public class Person {
//    @Resource(name = "shirt")
//    private Clothes clothes;

    @Resource
    private Clothes sweater;

    @Override
    public String
    toString() {
        return "Person{" +
                "sweater=" + sweater +
                '}';
    }
}
